package com.example.demo.order.rocketmq.consumer;

import org.apache.rocketmq.spring.annotation.RocketMQMessageListener;
import org.apache.rocketmq.spring.core.RocketMQListener;
import org.springframework.stereotype.Component;

/**
 * @ClassName OrderCreateConsumer
 * @Description 订单创建消费者
 * @Author MingChang.Wei
 * @Date 2025/8/12
 **/
@Component
@RocketMQMessageListener(topic = "order_create_topic", consumerGroup = "order_create_consumer_group")
public class OrderCreateConsumer implements RocketMQListener<String> {
    @Override
    public void onMessage(String order) {
        // 处理创建订单消息
        System.out.println("Received create order message for order: " + order);
    }
}
